﻿<local:MainPage
    x:Class="TheVerge.Phone.Pages.ForumsPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:con="clr-namespace:TheVerge.Phone.Controls"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:local="clr-namespace:TheVerge.Phone.Pages"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    Background="{StaticResource PhoneBackgroundBrush}"
    Loaded="Page_Loaded"
    shell:SystemTray.IsVisible="True">
    <local:BasePage.Resources>
        <DataTemplate x:Key="forumDT">
            <Button Click="Forum_Click" Style="{StaticResource clearButtonStyle}" MinHeight="142"
                    ContentTemplate="{StaticResource fourmLogoTemplate}" 
                    Content="{Binding}" />
        </DataTemplate>
        </local:BasePage.Resources>
    
    <Grid Background="{StaticResource PhoneBackgroundBrush}" Margin="-1">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <con:HeaderControl />
        
        <ListBox x:Name="lbForums" ItemTemplate="{StaticResource forumDT}" ItemsSource="{Binding All}" Grid.Row="1" />
    </Grid>
</local:MainPage>
